package cn.b.training.baby_education_training.repository;

import cn.b.training.baby_education_training.entity.Vaccine;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @program: baby_education
 * @description
 * @author: wuying
 * @create: 2022-11-29 10:26
 **/
@Repository
public interface VaccineRepository extends JpaRepository<Vaccine,Long> {
    @Query("select a from Vaccine a where a.id=?1")
    Vaccine getVaccineById(Long id);
}
